﻿/*
 * Created by SharpDevelop.
 * User: Chad Weimer
 * Date: 10/21/2011
 * Time: 10:34 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using Tasx.Definitions;

namespace Tasx.Providers.Dummy
{
	/// <summary>
	/// Description of DummyTask.
	/// </summary>
	internal class DummyTask : Task
	{
		internal DummyTask(DummyTaskProvider provider)
			: base(provider)
		{
		}
		
		public override string Summary { get; set; }
		
		public override string Notes { get; set; }
		
		public override Nullable<DateTime> DueDate { get; set; }
		
		public override Nullable<TimeSpan> Reminder { get; set; }
		
		public override TaskPriority Priority { get; set; }
		
		public override bool Completed { get; set; }
		
		private List<ITask> _tasks = new List<ITask>();
		public override IEnumerable<ITask> Tasks
		{
			get { return _tasks; }
		}
		
		internal void AddTask(DummyTask task)
		{
			//task.VerifyNotNull("task");
			
			_tasks.Add(task);
		}
		
		internal void RemoveTask(DummyTask task)
		{
			//task.VerifyNotNull("task");
			
			_tasks.Remove(task);
		}
	}
}
